<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <script type='text/javascript' src='http://localhost/C39/waimai/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdjs.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdvalidate.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/slide.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
COMMON = '<?php echo $GLOBALS['user']['COMMON'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
MODULE = '<?php echo $GLOBALS['user']['MODULE'];?>';
CONTROLLER = '<?php echo $GLOBALS['user']['CONTROLLER'];?>';
ACTION = '<?php echo $GLOBALS['user']['ACTION'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
VIEW = '<?php echo $GLOBALS['user']['VIEW'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
CONTROLLERVIEW = '<?php echo $GLOBALS['user']['CONTROLLERVIEW'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
</script>
    <link href='http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="30"></td>
            <td>分类id</td>
            <td>分类名称</td>
            <td>分类标题</td>
            <td>分类排序</td>
            <td>静态目录</td>
            <td>列表静态</td>
            <td>内容静态</td>
            <td>是否显示</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <tbody>
            <?php if(is_array($allData)){?><?php  foreach($allData as $key=>$v){ ?>
                <tr cid="<?php echo $v['cid'];?>">
                    <td width="30">
                    
                    <a href="javascript:;" class="glyphicon glyphicon-plus"></a>
                    
                    </td>
                    <td><?php echo $v['cid'];?></td>
                    <td><?php echo $v['_name'];?></td>
                    <td><?php echo $v['ctitle'];?></td>
                    <td><?php echo $v['csort'];?></td>
                    <td><?php echo $v['htmldir'];?></td>
                    <td>
                        <?php if($v['is_listhtml'] == 1){?>
                        <a  href="javascript:;" class="glyphicon glyphicon-ok" onclick="hd_ajax('<?php echo U('Category/ajax_show');?>',{cid : <?php echo $v['cid'];?>,stat:1,type:'list'})"></a>
                        <?php  }else{ ?>
                        <a href="javascript:;" class="glyphicon glyphicon-remove" onclick="hd_ajax('<?php echo U('Category/ajax_show');?>',{cid : <?php echo $v['cid'];?>,stat:0,type:'list'})" ></a>
                        <?php }?>
                    </td>
                    <td>
                    <?php if($v['is_archtml'] == 1){?>
                        <a  href="javascript:;" class="glyphicon glyphicon-ok" onclick="hd_ajax('<?php echo U('Category/ajax_show');?>',{cid : <?php echo $v['cid'];?>,stat:1,type:'arc'})"></a>
                        <?php  }else{ ?>
                        <a href="javascript:;" class="glyphicon glyphicon-remove" onclick="hd_ajax('<?php echo U('Category/ajax_show');?>',{cid : <?php echo $v['cid'];?>,stat:0,type:'arc'})"></a>
                        <?php }?>

                    </td>
                    <td>
                    <?php if($v['is_show'] == 1){?>
                        <a  href="javascript:;" class="glyphicon glyphicon-ok" onclick="hd_ajax('<?php echo U('Category/ajax_show');?>',{cid : <?php echo $v['cid'];?>,stat:1,type:'show'})"></a>
                        <?php  }else{ ?>
                        <a href="javascript:;" class="glyphicon glyphicon-remove" onclick="hd_ajax('<?php echo U('Category/ajax_show');?>',{cid : <?php echo $v['cid'];?>,stat:0,type:'show'})"></a>
                        <?php }?>

                    </td>
                    <td width="200">
                        <a href="<?php echo U('category/add_son',array('cid'=>$v['cid']));?>" class="btn btn-default btn-xs">添加子类</a>
                        <a href="<?php echo U('Category/edit_cate',array('cid'=>$v['cid']));?>" class="btn btn-default btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-default btn-xs" onclick="if(confirm('确定删除吗？')) location.href='<?php echo U('category/del',array('cid'=>$v['cid']));?>'">删除</a>
                    </td>
                </tr>
           <?php }}?>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


